package Wallpaper::Loader;
$VERSION = sprintf "%.3f", 1 + substr(q$Revision: 159 $,9)/1000;

use strict;

use Wallpaper::Configuration;
use Wallpaper::Tools;
use Wallpaper::SanityCheck;
use Wallpaper::Randomizer;
use Wallpaper::Main qw($mux $sock);
use Wallpaper::Client;
use Wallpaper::Daemon;

$SIG{HUP} = \&Wallpaper::Tools::phoenix;

$mux->loop;

print "Cleaning up PID ... Byebye!\n";
unlink( "$ENV{'HOME'}/.wall.pid" );
exit( 0 );

1;

